package cn.com.zsw.gblog.modules.gblog.controller;


import cn.com.zsw.gblog.modules.gblog.service.GbFriendSiteService;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (gb_friend_site)表控制层
 *
 * @author shiwangzhou
 * @since 2020-06-24 16:24:56
 */
@RestController
@RequestMapping("blog/friend/site")
public class GbFriendSiteController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private GbFriendSiteService bFriendSiteService;

    /**
     * @Author: shiwangZhou
     * @Description:
     * @Date: 2020-06-24 16:34
     * @Return com.baomidou.mybatisplus.extension.api.R
     * @Param
     */
    @GetMapping("list")
    public R selectAll() {
        return success(this.bFriendSiteService.getFriendSiteList());
    }
}